<template>
  <view>
    <!-- @click.capture.stop="compagePlateForm" -->
    <view v-if="isWxBrowser()"  class="background-image-container">
      <view  class="mask">
        <image class="mask-img" :src="sheep.$url.static('/assets/img/register-mask.png')"></image>
      </view>
      <!-- <loginContent :id="id"></loginContent> -->
    </view>
    <view v-else class="background-image-container">
      <loginContent :id="id"></loginContent>
    </view>
  </view>
</template>

<script setup>
  import { onLoad } from '@dcloudio/uni-app';
  import loginContent from './components/login-content.vue';
  import { ref } from 'vue';
  import sheep from '@/sheep';
  import { isWxBrowser } from '@/sheep/helper/utils';
  const id = ref('');
  onLoad((options) => {
    if (options.id) {
      id.value = options.id;
    }
  });
</script>
<style>
  .mask {
    position: fixed;
    top: 0;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    width: 100%;
  }

  .mask-img {
    width: 750rpx;
    height: 916rpx;
  }
  </style>

